package com.zx.baofu.alcohol.service;

import com.zx.baofu.alcohol.model.LotteryProbability;
import com.zx.baofu.alcohol.model.Result;
import com.zx.baofu.alcohol.model.UserOrder;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository(value = "orderService")
public interface OrderService {
    Result userWriteAddress(String unionid, String orderNum, String name, String mobile, String address, String area, String town);

    Result orderList(String text, Integer claimed, Integer pageNum, Integer pageSize);

    Result claimOrder(Integer orderId);

    Result getProbability();

    Result updateProbability(List<LotteryProbability> probabilitys);

    Result userOrder(String unionid);
    /**一等奖到三等奖的概率查询*/
    Result getAllLottery();
    /**查看订单*/
    Result getUserOrder(Long id);
}
